<link href="/css/bootstrap/dist/css/bootstrap.css" type="text/css" rel="stylesheet">

<div 	class="modal fade bs-example-modal-market<?= $object -> market_research_id ?>" tabindex="-1" 
									role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true">
		
						  
<div id="content">
<div style="overflow:visible;" class="form_style">
<div class="title">
	<h5><table class="table">
		<tr class="success">
			<td>
		市調
		</td>
		</tr>
		</table>
	</h5>
</div>


<div id="userinfo">
<table >
<tbody>

  <tr>	
	<th style="width:90px;">市調編號</th>
  <td width="144">
   <?=$object -> market_survey_no ?>
  </td>
	
	<th width="74">物件狀態</th>
	<td width="107">
	<?
	if (isset($object_state[$object -> object_state]))
		echo $object_state[$object -> object_state];
	?>
  </td>
  <td width="200" colspan="2">
	<?
	if ($object -> type_rent == 1)
		echo "租賃";

	if ($object -> type_sale == 1)
		echo "買賣";
	?></td>
</tr>
<tr><td class="table_title" colspan="8">客戶</td></tr>
<tr>
  <th>所有權人</th>
  <td width="144"> 		
	<?=$object -> owner ?>
  </td>
  <th width="74">手機</th>
  <td width="150">
	<?=$object -> owner_mobile ?>
</td>
  <th width="67">電話</th>
  <td width="107">
	<?=$object -> owner_phone ?></td>
	<th width="72" rowspan="2">市調狀態</th>
  <td rowspan="2"><?
//if (isset($market_state[$object -> market_research_status]))
	//echo $market_state[$object -> market_research_status];
	echo $object -> market_research_status;
	?>
  </td>
</tr>
<tr>
	<th>委 託 人</th>
	<td><?=$object -> principal ?>
	</td>
	<th>手機</th>
	<td><?=$object -> principal_mobile ?></td>
	<th>電話</th>
	<td><?=$object -> principal_phone ?></td>
</tr>
<tr><td class="table_title" colspan="8">區域</td></tr>
<tr>
  <th class="must_write">物件案名</th>
  <td><?
if (isset($building_name[$object -> case_name])) {
	echo $building_name[$object -> case_name];
} else {
	echo $object -> case_name;
}
  		?>
  </td>
  <th>大樓名稱</th>
  <td><?
if (isset($building_name[$object -> building_name])) {
	echo $building_name[$object -> building_name];
} else {
	echo $object -> building_name;
}
  ?>
  </td>
  <th>物件用途</th>
  <td><?
if (isset($object_usage[$object -> object_usage]))
	echo $object_usage[$object -> object_usage];
?>
  </td>
  <th>物件類型</th>
  <td><?
if (isset($object_styles[$object -> object_styles]))
	echo $object_styles[$object -> object_styles];
?>
  </td>
</tr>
 
<tr>
	<th>建物門牌 </th>
	<td colspan="3"><?=$object -> house_building ?>
	</td>
  <th>區域</th>				  
  <td><?=$object -> area ?>
  </td>
  <th>建號</th>
  <td><?=$object -> build_number ?></td>
</tr>
</tbody>
</table>




<table id="sale_case">
<!-- 售案 start -->

<tbody>
<tr><td class="table_title" colspan="8">售案</td></tr>
<tr>
<th width="150">總價</th>
	<td width="250"><?=$object -> sale_total ?>萬,
		  含車位<?=$object -> sale_parking ?>個
  </td>
	<th width="64">
		房屋售價                    </th>
	<td width="146"><?=$object -> sale_housing_prices ?>萬
  </td>
	<th width="65">
		房屋單價                    </th>
	<td width="106"><?=$object -> sale_housing_unit_price ?>萬/坪
  </td>
	<th width="62">車位售價</th>
	<td><?=$object -> sale_parking_price ?>萬</td>
</tr>
<tr>
<th>車位單價</th>
	 <td><?=$object -> sale_parking_unit_price ?>萬/個</td>
	 <th>土地單價</th>
	 <td colspan="5"><?=$object -> sale_land_unit_price ?>萬/坪</td>
</tr>
<!-- 售案 end -->
</tbody></table> 
<table id="rent_case">
<!-- 租案 start -->  
<tbody>
<tr><td class="table_title" colspan="8">租案</td></tr>
<tr>
<th width="150">總價</th>
		<td width="250"><?=$object -> rent_total ?>萬/月,<?
		if ($object -> rent_tax == 1)
			echo "含稅";
	?>/車位<?=$object -> rent_parking ?>個
  </td>
	  <th width="64">房屋租金</th>
	  <td width="146">
		<?=$object -> rent_housing_rent ?>萬/月
  </td>
	  <th width="65">車位租金</th>
	  <td width="106"><?=$object -> rent_parking_space_rentals ?>萬/月</td>
	  <th width="62">每坪租金</th>
	  <td colspan="">
		 <?=$object -> rent_rent_per_ping ?>萬
  </td>	 
</tr>
<tr>
<th>每月車位租金</th>
	<td>
		<?=$object -> rent_monthly_rent_parking_spaces ?>萬/個,押 金：<?=$object -> rent_deposit_month ?>月<?=$object -> rent_deposit_money ?>萬
  </td>
	<th>租期最少</th>
	<td><?=$object -> rent_min ?>年,最長<?=$object -> rent_max ?>年</td>
	<th>租期調漲 </th>
	<td colspan="3"><?=$object -> rent_lease_hike ?>萬</td>
</tr>

 <tr>
 <th>免租裝潢期</th>
	<td><?=$object -> rent_rent_free_period_decoration ?></td>
	<th>附屬配備 </th>
	<td><?
	if (isset($affiliated_with[$object -> rent_ancillary]))
		echo $affiliated_with[$object -> rent_ancillary];
	//echo $object -> rent_ancillary;
	?>
   </td>
	<th>公證</th>
	<td colspan="3">
		<?
		if ($object -> rent_notarization == 1)
			echo "有";
	?>
   </td>
</tr>

<!-- 租案 end -->
</tbody></table> 
<table>  	
<tbody>
<tr><td class="table_title" colspan="8">面積</td></tr>
<tr>
   <th width="150">建物面積</th>
   <td width="150"><?=$object -> building_area ?>坪
   </td>
	<th width="74">主建物面積</th>
	<td ><?=$object -> main_building_area ?>坪</td>
	<th width="74">附屬建物面積</th>
	<td width="74"><?=$object -> subsidiary_building_area ?>坪</td>
	<th width="20">公設</th>
	<td><?=$object -> postulate ?>坪</td>						
</tr>
<tr>
	<th>總權狀面積</th>
	<td><?=$object -> total_weight_shaped_area ?>坪,含車位<?=$object -> with_parking_number ?>個
	</td>
	<th>車位面積</th>
	<td><?=$object -> parking_area ?>坪&nbsp;/&nbsp;<?=$object -> parking_area_number ?>個</td>
	<th>使用面積</th>
	<td><?=$object -> use_area ?>坪</td>
	<th>公設比</th>
	<td><?=$object -> postulate_than ?>%</td>
</tr>
<tr>
	<th>基地坐落</th>
	<td>
	<?=$object -> base_is_located1 ?>段<?=$object -> base_is_located2 ?>小段
	</td>
	<th>地號</th>
	<td><?=$object -> to_no ?></td>
	<th>基地面積</th>
	<td><?=$object -> base_area ?>坪</td>
	<th>權利範圍</th>
	<td><?=$object -> scope_of_rights1 ?>分之<?=$object -> scope_of_rights2 ?></td>
</tr>
<tr>
	<th>土地持份面積</th>
	<td>
	<?=$object -> stakeholders_land_area ?>坪
	</td>
	<th>公告現值</th>
	<td><?=$object -> present_value ?>元</td>
	<th>總公告現值</th>
	<td colspan="3"><?=$object -> total_present_value1 ?>萬<?=$object -> total_present_value2 ?>年
	</td>
</tr>
<tr>
	<th>土地使用分區</th>
	<td><?
	if (isset($land_use_zoning[$object -> land_use_zoning]))
		echo $land_use_zoning[$object -> land_use_zoning];
	//echo $object -> land_use_zoning;
	?>
	</td>
	<th>容積率</th>
	<td><?=$object -> volume_rate ?>%</td>
	<th>建蔽率</th>
	<td colspan="3"><?=$object -> building_coverage_ratio ?>%</td>
	
</tr>
<tr>
	<th>每月管理費</th>
	<td><?=$object -> monthly_management_fee ?>元/月
	</td>
	<th>每坪管理費</th>
	<td><?=$object -> management_fees_per_ping ?>元/月</td>
	<th>管理方式</th>
	<td><?
	if (isset($management[$object -> management]))
		echo $management[$object -> management];
	//echo $object -> management;
	?>
	</td>
	<td colspan="2">

	</td>
</tr>
<tr><td class="table_title" colspan="8">概要</td></tr>
 <tr>
	<th>室內格局:</th>
	<td><?=$object -> indoor_pattern_house ?>房<?=$object -> indoor_pattern_hall ?>廳<br>
		<?=$object -> indoor_pattern_guard ?>衛
		<?=$object -> indoor_pattern_suite ?>套房	
	</td>
	<th>落地窗</th>
	<td><?
	//if (isset($windows[$object -> windows]))
		echo $object -> windows;
	?>
	</td>
	<th>該戶大門</th>
	<td><?
	//if (isset($base_is_located[$object -> household_door]))
		echo $object -> household_door;
	?>
	</td>
	<th>本棟大門</th>
	<td><?
	//if (isset($base_is_located[$object -> building_entrance]))
		echo $object -> building_entrance;
	?>
	</td>						
</tr>
<tr>
	<th>當層戶數</th>
	<td><?=$object -> households ?>戶
	</td>
	<th>該棟戶數</th>
	<td><?=$object -> building_households ?>戶</td>
	<th>總棟數</th>
	<td><?=$object -> total_towers ?>棟</td>
	<th>總戶數</th>
	<td><?=$object -> total_households ?>戶</td>
</tr>
<tr>
	<th>所在樓層</th>
	<td><?=$object -> floor ?>層
	</td>
	<th>樓層規劃</th>
	<td>地上<?=$object -> floor_plan1 ?>層 <br> 地下<?=$object -> floor_plan2 ?>層</td>
	<th>電梯數</th>
	<td>客梯<?=$object -> number_of_lifts1 ?>個<br>
		貨梯<?=$object -> number_of_lifts2 ?>個
	</td>
	<th>面臨路寬</th>
	<td><?=$object -> facing_the_lane ?>米</td>
</tr>
<tr>
	<th>使用現況</th>
	<td><?
	if (isset($use_status[$object -> use_status]))
		echo $use_status[$object -> use_status];
	?>
	</td>
	<th>租賃到期日</th>
	<td><?=$object -> lease_maturity ?></td>
	<th>承租方行業別</th>
	<td><?=$object -> lessee_by_industry ?></td>
	<th>樓地板高度</th>
	<td><?=$object -> floor_height ?>米</td>
</tr>
<tr>
	<th>建物外觀</th>
	<td><?=$object -> building_exterior ?></td>
	<th>主要建材</th>
	<td><?
	if (isset($main_building[$object -> main_building]))
		echo $main_building[$object -> main_building];
	echo $object -> main_building;
	?>
	</td>
	<th>建物完成日</th>
	<td><?=$object -> building_completion_date ?></td>
	<th>屋齡</th>
	<td><?=$object -> year_of_construction ?>年</td>
</tr>
<tr>
	<th>年租金</th>
	<td><?=$object -> annual_rent ?>萬/年
	</td>
	<th>投報率</th>
	<td><?=$object -> reported_rate ?>%</td>
	<th>建設公司</th>
	<td><?=$object -> construction_company ?></td>
	<th>建築執照號</th>
	<td><?=$object -> construction_license_no ?></td>
</tr>
<tr>
	<th>帶看方式</th>
	<td><?
	if (isset($look_mode[$object -> look_mode]))
		echo $look_mode[$object -> look_mode];
	//echo $object -> look_mode;
	?>
	</td>
	<th>鑰匙管理</th>
	<td><?=$object -> key_management ?></td>
	<th>地圖定位</th>
	<td><?=$object -> location_map1 ?><br/><?=$object -> location_map2 ?>				
	</td>
	<th>幣別/面積單位</th>
	<td><?
	if (isset($currency[$object -> currency]))
		echo $currency[$object -> currency];
	?>/<?
	if (isset($area_unit[$object -> area_unit]))
		echo $area_unit[$object -> area_unit];
	?>
	</td>
</tr>
<tr>
	<th>銀行設定總金額</th>	
	<td><?=$object -> bank_set_total_amount ?>萬
	</td>
	<th>貸款銀行</th>
	<td><?=$object -> loan_bank ?></td>
	<th class="zt">其他設定金額</th>
	<td colspan="3"><?=$object -> other_settings_amount ?>萬</td>
</tr>
<tr>
	<th>自備款</th>
	<td><?=$object -> bring_own_money ?>萬
	</td>
	<th>預估貸款</th>
	<td colspan="5"><?=$object -> estimated_loan ?>萬</td>
</tr>
<tr>
	<th>環境特色</th>
	<td style="width:100px;" colspan="7">
	<?
	if (isset($environmental_features[$object -> environmental_features]))
		echo $environmental_features[$object -> environmental_features];
	?>
	</td>
</tr>
<tr><td class="table_title" colspan="8">環境</td></tr>
<tr>
  <th>物件特色</th>
  <td style="width:100px;" colspan="7">
	<?
	if (isset($object_features[$object -> object_features]))
		echo $object_features[$object -> object_features];
	echo $object -> object_features; 
?>
  </td>
</tr>
<tr>
	<th colspan="">公共設施</th>
	<td colspan="3">
	<?
	if (isset($public_facilities[$object -> public_facilities]))
		echo $public_facilities[$object -> public_facilities];
	echo $object -> public_facilities;
	?>
	</td>
	<th>消防保全</th>
	<td colspan="3">
	<?
	if (isset($fire_and_security[$object -> fire_and_security]))
		echo $fire_and_security[$object -> fire_and_security];

	echo $object -> fire_and_security;
	?>
	</td>
</tr>

<tr>
	<th>商圈1</th>
	<td><?=$object -> circle1 ?>
	</td>
	<th>商圈2</th>
	<td><?=$object -> circle2 ?>
	</td>
	<th>公園1</th>
	<td><?=$object -> park1 ?>
	</td>
	<th>公園2</th>
	<td><?=$object -> park1 ?>
	</td>
</tr>

<tr>
	<th>捷運線1</th>
	<td><?
	if (isset($mrt_line[$object -> mrt_line1]))
		echo $mrt_line[$object -> mrt_line1];
	?>
	</td>
	<th>捷運站1</th>
	<td><?
	if (isset($mrt[$object -> mrt1]))
		echo $mrt[$object -> mrt1];
	?>
	</td>
	<th>捷運線2</th>
	<td><?
	if (isset($mrt_line[$object -> mrt_line2]))
		echo $mrt_line[$object -> mrt_line2];
	?>
	</td>
	<th>捷運站2</th>
	<td><?
	if (isset($mrt[$object -> mrt2]))
		echo $mrt[$object -> mrt2];
	?>
	</td>
</tr>
<tr>
	<th>學區(國小) </th>
	<td><?=$object -> school_district_primary ?>
	</td>
	<th>學區(國中)</th>
	<td><?=$object -> school_district_high ?>
	</td>
	<th>學區(高中)</th>
	<td colspan="3"><?=$object -> school_district_senior ?>
	</td>
</tr>
<tr><td class="table_title" colspan="8">車位</td></tr>
<tr>
	<th>車位所在樓層</th>
	<td><?=$object -> spaces_where_floor ?>
	</td>
	<th>車位號碼</th>
	<td><?=$object -> parking_numbers ?>
	</td>
	<th>車位入口高度</th>
	<td colspan="6"><?=$object -> parking_entrance_height ?>米</td>
</tr>
<tr>
	<th>公設車位</th>
	<td><?=$object -> public_parking_spaces1 ?>坪<?=$object -> public_parking_spaces2 ?>個
	</td>
	<th>獨立權狀車位</th>
	<td><?=$object -> separate_parking1 ?>坪<?=$object -> separate_parking2 ?>個
	</td>
	<th>車位管理費</th>
	<td><?=$object -> car_park_management_fee ?>元/月/個
	</td>
	<th>車位總管理費</th>
	<td><?=$object -> total_management_fee_parking ?>元/月
	</td>
</tr>
<tr>
	<th>車位類型</th>
	<td><?
	if (isset($parking_type[$object -> parking_type1]))
		echo $parking_type[$object -> parking_type1];
	?>型<?=$object -> parking_number1 ?>個
	</td>
	<th>車位單買</th>
	<td><?=$object -> parking_price1 ?>萬
	</td>
	<th>車位類型</th>
	<td><?
	if (isset($parking_type[$object -> parking_type2]))
		echo $parking_type[$object -> parking_type2];
	?>型<?=$object -> parking_number2 ?>個
	</td>
	<th>車位單買</th>
	<td><?=$object -> parking_price2 ?>萬
	</td>
</tr>
<tr>
	<th style="width: 90px;">使用權車位數</th>
	<td><?=$object -> use_parking_number ?>個</td>
	<th>抽籤</th>
	<td><?=$object -> ballot ?>年抽一次</td>
	<th>上網</th>
	<td colspan="4"> <?
	if ($object -> internet == 0)
		echo "否";
	else if ($object -> internet == 1)
		echo "是";
	?>
	</td>
</tr>	
<tr>
	<th>鑑價日期</th>
	<td><?=$object -> valuation_date ?>
	</td>	 
	<th>鑑價機構</th>
	<td><?=$object -> appraisal_agencies ?></td>
	<th>鑑價金額</th>
	<td><?=$object -> valuation_amount ?>萬</td>					
	<th>物件案別</th>
	<td><?
	$oct = "";
	if (strstr($object -> object_case_type, 1))
		$oct = "中古屋";
	if (strstr($object -> object_case_type, 2)) {
		if ($oct == "")
			$oct = "預售";
		else
			$oct = "/預售";
	}
	if (strstr($object -> object_case_type, 3)) {
		if ($oct == "")
			$oct = "標售";
		else
			$oct = "/標售";
	}
	echo $oct;
	?>
	</td>
</tr>
<tr>
	<th>附近成交行情 </th>
	<td><?=$object -> transaction_prices_near ?></td>
	<th>密件</th>
	<td><?
	if ($object -> internet == "N")
		echo "否";
	else if ($object -> internet == 0)
		echo "是";
	?>
	</td>
	<th>狀態</th>
	<td><?
	if ($object -> status == 1)
		echo "有效";
	else if ($object -> status == 0)
		echo "無效";
 ?>
	</td>
	<th>無效說明</th>
	<td><?=$object -> invalid_description ?></td>
</tr>

<tr>
	<th>備註 </th>
	<td colspan="7"><?=$object -> remark ?></td>
</tr>

</tbody>
</table>

<table >
<tbody><tr>
  <th>接待人</th>
  <td>
  	
  	<?=isset($users[$object -> front_man])?$users[$object -> front_man]:'' ?>
  	
  </td>
  <th>指派主管</th>
  <td>
  	<?=isset($users[$object -> head])?$users[$object -> head]:'' ?>
	
  </td>
  <th>指派日期</th>
  <td><?=$object -> assigned_date ?>
  </td>
  <th>指派經紀人</th>
  <td>
  	<?=isset($users[$object -> broker])?$users[$object -> broker]:'' ?>
  	</td>
</tr>

</tbody>
<tr>
	<td class="table_title" colspan="8">
	<div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>       
    </div>
    </td>
</tr>
</table>
</div>
<!-- 物件資料結束 -->	
</div>

</div>


 
    
      
    </div>
  
